#include<stdio.h>
#define Max 50
struct student
{
	char stuId[20];
	double Chinese;
	double Math;
	double English;
	double Average;
}stu[Max];
int main()
{
	int stunumber;
	scanf("%d",&stunumber);
	
	printf("请输入学生ID和语文数学及英语成绩:\n");
	int i;
	for(i=0;i<stunumber;i++)
	{
		scanf("%s%lf%lf%lf",stu[i].stuId,&stu[i].Chinese,&stu[i].Math,&stu[i].English);
		stu[i].Average=(stu[i].Chinese+stu[i].Math+stu[i].English)/3;
	}
	
	printf("StudentNum\tChinese\tMath\tEnglish\tAverage\n");

	for(i=0;i<stunumber;i++)
	{
		printf("%s\t%.2lf\t%.2lf\t%.2lf\t%.2lf\n",stu[i].stuId,stu[i].Chinese,stu[i].Math,stu[i].English,stu[i].Average);
	}
	
	return 0;
}
